package com.demo.provider;

import com.demo.bean.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * UserProvider
 *
 * @author liujin
 * @date 2020/11/4 17:23
 */
@FeignClient("user")
public interface UserProvider {

    @PostMapping("/user")
    String user(@RequestBody @Valid UserDTO dto);
}
